package com.zhejiangzhengyuan.municipal_common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhejiangzhengyuan.municipal_common.entity.InspectionTasks;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * Mapper 接口
 *
 * @author linju
 * @since 2019-12-16
 */
@Repository
public interface InspectionTasksMapper extends BaseMapper<InspectionTasks> {

  int getFrequency(
      @Param("type") String type, @Param("targetId") String targetId, @Param("month") String month);

  int getReport(
      @Param("type") String type, @Param("targetId") String targetId, @Param("month") String month);

  int getMaintain(
      @Param("type") String type, @Param("targetId") String targetId, @Param("month") String month);

  int getResolved(
      @Param("type") String type, @Param("targetId") String targetId, @Param("month") String month);

  int getMaintenanceConserve(
      @Param("type") String type, @Param("targetId") String targetId, @Param("month") String month);

  int getPumpData(
      @Param("type") String type, @Param("reason") String reason, @Param("month") String month);

  int getBridgeResolved(@Param("deviceId") Long deviceId, @Param("month") String month);

  int getBridgeWarn(@Param("deviceId") Long deviceId, @Param("month") String month);

  int getPumpResolved(@Param("type") String type, @Param("month") String month);

  int findTodayCycleTasks(@Param("day") String day);
}
